package com.example.kemgdemo.dto.req;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/11
 */
@Getter
@Setter
public class AddBuildingReq {

    @NotBlank(message = "建筑名不能为空")
    private String name;

    @Range(min = 1, max = 80, message = "超出范围")
    private Integer high;

    private AddAddressReq addAddressReq;
}
